package com.ksyun.campus.metaserver.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;

/**
 * Create file request
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CreateFileRequest {
    
    @NotBlank(message = "Path cannot be blank")
    private String path;
    
    @Min(value = 1, message = "Replication factor must be at least 1")
    @Builder.Default
    private int replication = 3;
    
    @Builder.Default
    private int permissions = 644;
    @Builder.Default
    private String owner="ccnu";
    private String group="uses";
}
